/**
 * 权限管理
 */
import {mapState} from 'vuex'
export default {
  computed: {
    ...mapState('user', ['authorityInfo'])
  },
  methods: {
    hasPermission (key) {
      return this.authorityInfo.includes(key)
    }
  }
}
